﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using IScript;
using System.Reflection;

namespace PanTiltCruise
{
    public class TimeCruise : CruiseBase
    {
        protected override void OnCruise()
        {
            this.PanRight();
            Thread.Sleep(2000);
            this.PTZStop();
        }

        protected override void OnStop()
        {
            this.PTZStop();
        }

        void PanRight()
        {
            if (this.scriptCallFucntion != null)
                this.scriptCallFucntion("PanRight", (byte)3);
        }

        void PTZStop()
        {
            if (this.scriptCallFucntion != null)
                this.scriptCallFucntion("PTZStop");
        }

    }
}
